﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Referee
    {

        int sum1 = 0;
        int sum2 = 0;
        int sum3 = 0;
        int sum4 = 0;

        public void Date(int a1, int a2)
        {
            if (a1 - a2 == -2 || a1 - a2 == 1)
            {
                Console.WriteLine("玩家胜利!");
                sum2++;
            }
            else if (a1 == a2)
            {
                Console.WriteLine("平局");
                sum3++;
            }
            else
            {
                Console.WriteLine("玩家失败!");
                sum4++;
            }
             sum1 = sum2 + sum3 + sum4;

        }


        internal void Date1()
        {
            Console.WriteLine("你的胜场数：{0}", sum2);
            Console.WriteLine("对手胜场数：{0}", sum4);
            Console.WriteLine("平局场数：{0}", sum3);
            Console.WriteLine("总场数：{0}", sum1);
            if (sum2 > sum4)
            {
                Console.WriteLine("你赢了");
            }
            else if (sum2 < sum4)
            {
                Console.WriteLine("你输了");
            }
            else if (sum2 == sum4)
            {
                Console.WriteLine("平局");
            }
        }
    }
}
